const TOKEN_KEY = 'hmtt79'
export const settoken = function (obj) {
    localStorage.setItem(TOKEN_KEY, JSON.stringify(obj))
}
export const getToken = function () {

    // 取出来的时候是一个json字符串，所以还要转回JS对象
    return JSON.parse(localStorage.getItem(TOKEN_KEY))
}
export const remotoken = function () {
    localStorage.removeItem(TOKEN_KEY)
}
